<form action="" class="" method="post" name="myform" id="myform">
{$form}
<input type="hidden" id="dr_row_jgtkg" name="data[jgtkg]" value="1">
<input type="hidden" name="data[yuedumoshi]" value="1" >
<div class="d-yuanjiao-20 d-kuan">
	<!--快捷发布-->
	<div class="d-kuan d-buhuanhang d-beijing-baise d-bianhua-10 d-yuanjiao-10 d-wenzi-14">
		<div class="d-kuan d-fabu d-yuanjiao-10">
			<div class="d-kuan d-fabu-neikuang-10">
				<div class="shuoming">分享工作中和生活中有趣、好玩、奇葩的事...</div>
				<?php echo dr_fieldform('{"name":"内容","fieldname":"neirong","ismain":"1","fieldtype":"Editor","setting":{"option":{"show_bottom_boot":"0","imgtitle":"0","imgalt":"0","watermark":"0","image_ext":"jpg,gif,png,webp,jpeg","image_size":"10","attach_size":"200","attach_ext":"zip,rar,txt,doc","video_ext":"mp4","video_size":"500","attachment":"0","value":"","width":"100%","height":"100%","css":""},"validate":{"required":"0","pattern":"","errortips":"","check":"","filter":"","formattr":"","tips":""}},"ismember":"1"}', $content, 1, 1);?>
				
			</div>
			<!--div class="d-kuan d-fabu-kuan">
				<textarea id="dr_content" name="data[content]" class="d-fabu-neirong" maxlength="1000" tabindex="0" autocomplete="off" placeholder="分享工作中和生活中有趣、好玩、奇葩的事..." style="min-height: 90px; height: 90px;resize: none;"></textarea>
			</div-->
			<div class="d-kuan d-fabu-fenleis">
				<div class="pull-left d-shang-20">
					
					<div class="form-control-fabu pull-left d-you-10">
						<select id="dr_tid" name="data[tid]" onchange="show_category_field(this.value)" tabindex="-98">
							{php $erjibiao = '1_quan_fenlei';}
							{table table=$erjibiao yijiid=0 cid=$danquanid order=inputtime_desc num=100 return=t1}
							{php $youerji = \Phpcmf\Service::M()->db->table($erjibiao)->where('yijiid', $t1.id)->get()->getRowArray();}
							<option disabled="" value="{$t1.id}"> {$t1.name}</option>
							    {if $youerji}
								{table table=$erjibiao yijiid=1 yijiid=$t1.id cid=$index.id order=inputtime_desc num=100 return=t2}
								<option _selected_{$t2.id}_="" value="{$t2.id}">&nbsp;&nbsp;├&nbsp;{$t2.name}</option>
								{/table}
								{/if}
							{/table}
						</select>
					</div>
					
					<!--span class="d-wenzi-12 d-neikuang-2-5 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-xia-10">
						<i class="bi bi-record-circle"></i> 选择分类
					</span-->
					
					<!--span class="d-zuo-10 d-wenzi-12 d-neikuang-2-5 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-xia-10">
						<i class="fa fa-file-photo-o"></i> 图片
						
					</span-->
					<?php echo dr_fieldform('{"name":"图片","fieldname":"jiugetu","ismain":"1","fieldtype":"Filesjiugetus","setting":{"option":{"size":"10","count":"50","ext":"jpg,gif,png","attachment":"0","image_reduce":"1000","is_ext_tips":"0","css":"height: 90px;"},"validate":{"required":"0","pattern":"","errortips":"","check":"","filter":"","formattr":"","tips":""}},"ismember":"1"}', $jiugetu, 1, 1);?>
					
				</div>
				<div class=" d-neikuang-10">
					<button type="button" onclick="dr_ajax_submit('{dr_member_url('quan/son/add', ['tid'=>'','cid'=>$danquanid,'kuai'=>1])}', 'myform', '0','{dr_url('home/index',)}')" class="btn blue pull-right btn-sm">发 布</button>
				</div>
				<div class="d-clear"></div>
			</div>
		</div>
		
	</div>
	
</div>
</form>
<style>
	.d-fabu-fenleis {
	    padding-left: 10px;
	    padding-bottom: 10px;
	    resize: none;
	    border: none;
	}
	.d-fabu {
	    padding-top: 0px;
	    border: 1px solid #ddd;
	    /* padding-bottom: 10px; */
	}
	.form-control-fabu {
		
		/*width: 100%;*/
		/*height: 34px;*/
		font-size: 12px;
		padding: 2px 2px;
		/*background-color: #f3f4f7;*/
		border: 1px solid #f3f4f7;
		border-radius: 50px;
		/*-webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
		-webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
		-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
		transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;*/
		
	}
	.form-control-fabu select {
	    background: #efefef;;
	    border-color: #ffffff;
		border-radius: 50px;
	    color: #333;
		font-size: 12px;
	    padding: 0px;
	}
	.form-control-fabu option {
	    font-weight: normal;
	    display: block;
	    white-space-collapse: collapse;
	    text-wrap: nowrap;
	    min-height: 1.2em;
	    padding: 0px 2px 1px;
	}
	.d-yincang-wenzi-jiugetu {
		display: none
	}
	.d-yincang-tu-jiugetu {
		display: none
	}
	.d-anniu-jiugetu {
		margin-top: 2px;
	    padding: 2px 7px;
		font-size: 12px;
		line-height: 1.5;
		border-radius: 50px;
		float: left!important;
		background-color: #efefef;
		color: #aaaaaa;
	}
	#fileupload_jiugetu {
		float: left!important;
	}
	.preview {
	    height: 55px;
	    border: 1px solid #f5f5f5;
	}
	.files_row .preview img {
	    max-height: 40px;
	    overflow: hidden;
	}
	.note-toolbar {
		display: none
	}
	.note-editor.note-frame .note-editing-area .note-editable, .note-editor.note-airframe .note-editing-area .note-editable {
	    padding: 0px;
	    overflow: auto;
	    word-wrap: break-word;
		min-height: 100px;
	}
	.note-statusbar {
		display: none
	}
	.d-fabu-neikuang-10 {
		padding: 10px 10px 0 10px;
	}
	.panel {
	    margin-bottom: 0px;
	    background-color: #fff;
	    border: 1px solid transparent;
	    border-radius: 4px;
	    -webkit-box-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
	    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
	}
	.note-editable hr, .note-editable p {
	    margin: 2px 0;
	}
	.note-editor.note-frame, .note-editor.note-airframe {
		
	    border: 1px solid #ffffff;
	    border-radius: 4px;
	}
	.note-editable {
	  position: relative;
	}
	
	.note-editable:hover {
	  outline: none;
	  ::placeholder {
	    visibility: hidden;
	  }
	.shuoming {
		left: 0;
		top: 10px;
		position: fixed;
		width: 100px;
		  height: 100px;
	}
	
</style>
<script> 


$(document).ready(function() { // 监听textarea的输入事件 
	$('.note-editable').on('input', function() { // 获取textarea的内容 
	    var div = $(".note-editable");
		var text = div.text();
		var length = text.length;
		$(".shuoming").hide();
		//console.log(length);
		if (length == 0) {
			$(".shuoming").show();
		} else {
			$(".shuoming").hide();
		}
	}); 
}); 


</script>